package com.example.testdemo.controller;

import com.example.testdemo.model.UserInfo;
import com.example.testdemo.service.UserService;
import jakarta.annotation.Priority;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService;

    @Resource(name = "userInfo2")
    private UserInfo userInfo;

    public void doController() {
        userService.doService();
        System.out.println(userInfo);
        System.out.println("do UserController");
    }
}
